#ifndef SAFESCANBOTTOM_H
#define SAFESCANBOTTOM_H
#include "../../commom/basestylewidget.h"

#include <src/commom/staticbutton.h>

#include <QStackedWidget>

#include <src/safe/safewidget.h>

#include <src/clean/cleanwidget.h>

#include <src/youhua/youhuawidget.h>
#include <QParallelAnimationGroup>
#include <src/main/mainbottomwidget.h>
#include <src/main/maintopwidget.h>

class ScanButtonWidget;
class StaticTextButton;

class SafeScanBottom : public BaseStyleWidget
{
    Q_OBJECT
public:
    explicit SafeScanBottom(QWidget *parent = 0);

signals:
    void quickClicked();
    void fullClicked();
    void customClicked();
    void fixClicked();
    void patchClicked();
    void goToClean();
    void goToYouhua();
    void cleanClicked();
    void youhuaClicked();
    void axisClicked();
private:
    void initUI();
    void initConnect();
private:
    MainTopWidget   *m_topWidget;
    MainBottomWidget    *m_bottomWidget;
    ScanButtonWidget    *m_quick;
    ScanButtonWidget    *m_full;
    ScanButtonWidget    *m_custom; //当鼠标选中时会播放动画
    StaticTextButton *m_test1Button;
    StaticTextButton *m_test2Button;
    StaticTextButton *m_test3Button;
    StaticTextButton *m_test4Button;
    StaticTextButton *m_test5Button;
    StaticTextButton *m_test6Button;
    QStackedWidget  *m_testWidget;
    SafeWidget  *m_safeWidget;
    CleanWidget *m_cleanWidget;
    YouhuaWidget    *m_youhuaWidget;
    StaticTextButton    *m_fix;
    StaticTextButton    *m_patch;
    QParallelAnimationGroup *m_upGroup;

private slots:
//    void goToSafe();

};

#endif // SAFESCANBOTTOM_H
